{template 'common/header'}
<div class='container' style='padding:0 5px 10px;margin:0;width:100%'>
	<div class="panel panel-success">
  		<div class="panel-heading">主站信息设置</div>
	</div>
	<form action="" method="post" class="form-horizontal form">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">AppId</label>
					<div class="col-sm-8">
						<input type="text" name="appid" class="form-control" value="{$info['appid']}" />
						<span class="help-block"></span>
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">AppSecret</label>
					<div class="col-sm-8">
						<input type="text" name="appsecret" class="form-control" value="{$info['appsecret']}" />
						<span class="help-block"></span>
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">商户号:</label>
					<div class="col-sm-8">
						<input type="text" name="mchid" class="form-control" value="{$info['mchid']}" />
						<span class="help-block"></span>
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">商户秘钥:</label>
					<div class="col-sm-8">
						<input type="text" name="shkey" class="form-control" value="{$info['shkey']}" />
						<span class="help-block"></span>
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">公益组织名称</label>
					<div class="col-sm-8">
						<input type="text" name="gy_name" class="form-control" value="{$info['gy_name']}" />
						<span class="help-block"></span>
					</div>
				</div>	
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">组织Logo</label>
					<div class="col-sm-8">
						{php echo tpl_form_field_image('gy_logo',$info['gy_logo']);}
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">是否强制关注才能捐款</label>
					<div class="col-sm-8">
						<input name="is_follow" type="radio" value="1" <?php if($info['is_follow']=="1"){?>checked="checked"<?php }?>/> 是 &nbsp;&nbsp;&nbsp;&nbsp;
						<input name="is_follow" type="radio" value="0" <?php if($info['is_follow']=="0"){?>checked="checked"<?php }?>/> 否
						<span class="help-block"></span>
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">自定义捐款金额</label>					
					<div class="col-sm-2">
						<input type="text" name="cash1" class="form-control" value="{$info['cash1']}" />						
					</div>
					<div class="col-sm-2">
						<input type="text" name="cash2" class="form-control" value="{$info['cash2']}" />						
					</div>
					<div class="col-sm-2">
						<input type="text" name="cash3" class="form-control" value="{$info['cash3']}" />						
					</div>
					<div class="col-sm-2">
						<input type="text" name="cash4" class="form-control" value="{$info['cash4']}" />						
					</div>
					<div class="col-sm-8" style="margin-left:150px;">
						<span class="help-block">对应前台页面捐款时显示的4个固定金额(单位:元)</span>
					</div>
				</div>
								
				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">捐款记录显示模式</label>
					<div class="col-sm-8">
						<input name="is_sort" type="radio" value="0" <?php if($info['is_sort']=="0"){?>checked="checked"<?php }?>/> 捐款记录模式（按捐款时间排序）&nbsp;&nbsp;&nbsp;&nbsp;
						<input name="is_sort" type="radio" value="1" <?php if($info['is_sort']=="1"){?>checked="checked"<?php }?>/> 排行榜模式（按捐款总金额排序） 
						<span class="help-block"></span>
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">模版ID</label>
					<div class="col-sm-8">
						<input type="text" name="template_id" class="form-control" value="{$info['template_id']}" />
						<span class="help-block">模版标题“捐款成功通知“</span>
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">关注引导链接</label>
					<div class="col-sm-8">
						<input type="text" name="follow_url" class="form-control" value="{$info['follow_url']}" />
						<span class="help-block"></span>
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">协议名称</label>
					<div class="col-sm-8">
						<input type="text" name="gy_agree_name" class="form-control" value="{$info['gy_agree_name']}" />
						<span class="help-block"></span>
					</div>
				</div>	
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label">协议内容</label>
					<div class="col-sm-8">
						{php echo tpl_ueditor('gy_agree', $info['gy_agree']);}
						<span class="help-block"></span>
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-4 col-md-2 col-lg-2 control-label"></label>
					<div class="col-sm-4">
					<input type="hidden" name="token" value="{$_W['token']}" />
					<input name="submit" type="submit" value="提交" class="btn btn-primary span3" />	
				</div>
			</div>	
		</div>
	</form>	
</div>
{template 'common/footer'}
